package com.situ.spring.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.situ.spring.dao.ICourseDao;
import com.situ.spring.dao.impl.CourseDaoImpl;
import com.situ.spring.service.ICourseService;
/*
<bean name="courseService" class="com.situ.spring.service.impl.CourseServiceImpl">
</bean>
*/
@Service("courseService")
public class CourseServiceImpl implements ICourseService {
	// private ICourseDao courseDao = new CourseDaoImpl();
	@Resource(name = "courseDao")
	private ICourseDao courseDao;

	@Override
	public void selectAll() {
		System.out.println("CourseServiceImpl.selectAll()");
		courseDao.selectAll();
	}

}
